<!DOCTYPE html>
<html>
<#include "../inc/head.html"/>
<body>
<#include "../inc/header.html"/>
  <div class="main layui-clear"> 
   <div class="fly-panel" pad20="" style="padding-top: 5px;"> 
    <div class="layui-form layui-form-pane"> 
     <div class="layui-tab layui-tab-brief" lay-filter="user"> 
      <ul class="layui-tab-title"> 
       <li class="layui-this">发布新话题</li> 
      </ul> 
      <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding: 20px 0;"> 
       <div class="layui-tab-item layui-show"> 
        <form action="./act/add" method="post"> 
         <div class="layui-form-item"> 
          <label for="L_title" class="layui-form-label">标题</label> 
          <div class="layui-input-block"> 
           <input type="text" id="L_title" name="title" lay-verify="required" autocomplete="off" class="layui-input" /> 
          </div> 
         </div>
          <div class="layui-form-item"> 
          <div class="layui-inline"> 
           <label class="layui-form-label">栏目</label> 
           <div class="layui-input-block"> 
            <select name="categoryId" lay-verify="required" asnycSelect="/post/categorys" lay-filter="lang_select"> 
               <option value="">请选择栏目</option> 
            </select> 
           </div> 
          </div> 
         </div> 
         <div class="layui-form-item" pane="">
           <label class="layui-form-label">是否原创</label>
           <div class="layui-input-block">
            <input type="radio" name="isOriginal" value="true" title="是" checked>
            <input type="radio" name="isOriginal" value="false" title="否">
           </div>
         </div> 
         <div class="layui-form-item layui-form-text"> 
          <label class="layui-form-label">内容</label>
          <div class="layui-input-block"> 
           <textarea id="L_content" name="content" lay-verify="required" placeholder="请输入内容" class="layui-textarea fly-editor" style="height: 260px;"></textarea> 
          </div> 
         </div> 
         
         <div class="layui-form-item"> 
          <label for="L_title" class="layui-form-label">标签</label> 
          <div class="layui-input-block"> 
           <input type="text" id="L_tags" name="tags" placeholder="标签，多个用,或者空格隔开" autocomplete="off" class="layui-input" /> 
          </div> 
         </div>
        
         <div class="layui-form-item"> 
          <button class="layui-btn" lay-filter="ajax_submit" lay-submit onSuccessJumpurl="../ucenter/index" onBeforeSend="onBeforeSend">立即发布</button>
          <input type="reset" class="layui-btn layui-btn-primary" value="重置"/>
         </div> 
        </form> 
       </div> 
      </div> 
     </div> 
    </div> 
   </div>
  </div>
 <#include "../inc/footer.html"/>
 </body>
 <script>
 function onBeforeSend(data){
	 data.content = layui.fly.content(data.content);
	 return data;
 }
 </script>
</html>